﻿using System;
using System.Web.UI;

public partial class CustomControls_HomeArticlesAndTopics : UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            repArticles.DataSource = Entities.GetLatestArticles(10);
            repArticles.DataBind();
            repHotTopics.DataSource = Entities.GetRecentPostList();
            repHotTopics.DataBind();
        }
        catch (Exception)
        {
        }
    }
}